/**
 * 
 */
package model;

import persistence.BankDAO;

/**
 * @author Diogo Kiss
 * 
 */
public class Bank
{
	private String name;
	private double amount;
	private int id;
	private BankDAO dao;

	public Bank()
	{
		this.dao = BankDAO.getInstanceOf();
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public double getAmount()
	{
		return amount;
	}

	public void setAmount(double amount)
	{
		this.amount = amount;
	}

	public int getId()
	{
		return id;
	}

	public void setId(int id)
	{
		this.id = id;
	}
	
	public boolean save()
	{
		this.dao.toString();
		
		return true;
	}
	
}
